import request from '@/utils/request'


const api_name = '/admin/hosp/hospitalSet'

export default {
    getHospList(currentPage, limit, searchObj){
        return request({
            url: `${api_name}/findPageHospitalSet/${currentPage}/${limit}`,
            method: 'post',
            data: searchObj,
        })
    },
    removeDataById(id){
        return request({
            url: `${api_name}/${id}`,
            method: 'delete',
        })
    },

    batchRemove(idList){
        return request({
            url: `${api_name}/batchRemove`,
            method: 'delete',
            data: idList,
        })
    },

    //锁定和取消锁定
    lockHospSet(id, status) {
        return request ({
            url: `${api_name}/lockHospitalSet/${id}/${status}`,
            method: 'put'
        })
    },

    saveHospitalSet(hospitalSet){
        return request ({
            url: `${api_name}/saveHospitalSet`,
            method: 'post',
            data: hospitalSet,
        })
    },
    
    //医院设置id查询
    getHospitalSet(id) {
        return request ({
            url: `${api_name}/getHospSet/${id}`,
            method: 'get'
        })
    },

    // 根据hospitalSet更新数据
    updateHospitalSet(hospitalSet){
        return request ({
            url: `${api_name}/updateHospitalSet`,
            method: 'post',
            data: hospitalSet
        })
    },



  


}